/*
 * =====================================================================================
 *
 *       Filename:  bp_sensor.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  10/03/2010 08:32:34 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Ken Chen (Ziliang), zlchen.ken@gmail.com
 *        Company:  EMC
 *
 * =====================================================================================
 */

#include "bp_sensor.h"

BarometricPressureSensor::BarometricPressureSensor() 
	: itsPressure( 0.0 )
{
}

double BarometricPressureSensor::getBarometricPressure( void ) const 
{
	return itsPressure;
}

void BarometricPressureSensor::setBarometricPressure( double pressure ) 
{
	if( pressure != itsPressure )
	{
	  itsPressure = pressure;
		notifyObservers();
	}
}

